function checkLogon() {
  var name = document.getElementById("username").value;
  var pass = document.getElementById("password").value;
  if (name == null || name == "" || pass == null || pass == "") {
    alert("用户名或密码不能为空！！");
  } else {
    if (name == "123" && pass == "123") {
      alert("登录成功！");
      window.location.href = "https://dengxj.blog.csdn.net/";
    } else {
      alert("用户名或密码错误！！");
    }
  }
}
